package Classes.Actions
{
	import Classes.World;
	
	import flash.geom.Point;

	public class MoveAction extends BaseAction
	{
		private var m_position:Point;
		private var m_world:World;
		
		public function MoveAction(position:Point, world:World)
		{
			m_world = world;
			m_position = position;
		}
		
		override public function execute():void{
			m_world.getPlayer().getRigidBodyComponent().moveTo(m_position);
		}
	}
}